package com.pz.gulimall.common.to.mq;

import lombok.Data;
import lombok.ToString;

import java.util.List;

@Data
public class OrderReleaseTo {
    private Long orderId;
    private String orderSn;
    private Long couponId;
    private Integer payType;
    private Integer sourceType;
    private Integer status;
    private String deliveryCompany;
    List<OrderItemTo> orderItems;

    @Data
    @ToString
    public static class OrderItemTo {
        private Long skuId;
        private List<ItemWareDetail> wareDetails; //分布的仓储信息
    }

    @Data
    @ToString
    public static class ItemWareDetail {
        private Long wareId; //所在的仓库
        private Integer lockedNnm; //锁住的数量
    }
}
